module.exports = {
  productionSourceMap: false,
  pages: {
    index: {
      // page 的入口
      entry: "examples/main.js",
      // 模板来源
      template: "public/index.html",
      // 在 dist/index.html 的输出
      filename: "index.html",
    },
  },
  // 配置转发代理
  devServer: {
    host: "0.0.0.0",
    hot: true,
    disableHostCheck: true,
    proxy: {
      "/api": {
        target: 'https://www.fastmock.site/mock/40ff5db7fde9cce430293ab0fc6a3d23',
        ws: true,
        pathRewrite: {
          "^/api": "",
        },
      }
    },
  },
};
